home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / who.z / who
Text File  |  1998-10-30  |  15KB  |  265 lines

  1.  
  2.  
  3.  
  4. wwwwhhhhoooo((((1111))))                                                                  wwwwhhhhoooo((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _wwww_hhhh_oooo - display who is on the system
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _wwww_hhhh_oooo [_----_mmmm_uuuu] -s [_----_bbbb_HHHH_llll_pppp_rrrr_tttt] [ _f_i_l_e ]
  13.  
  14.      _wwww_hhhh_oooo [_----_mmmm_TTTT_uuuu] [_----_aaaa_bbbb_dddd_HHHH_llll_pppp_rrrr_tttt] [ _f_i_l_e ]
  15.  
  16.      _wwww_hhhh_oooo _----_qqqq_nnnn _x [ _f_i_l_e ]
  17.  
  18.      _wwww_hhhh_oooo _aaaa_mmmm _iiii
  19.  
  20.      _wwww_hhhh_oooo _aaaa_mmmm _IIII
  21.  
  22. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  23.      _wwww_hhhh_oooo can list the user's name, terminal line, login time, elapsed time
  24.      since activity occurred on the line, and the process ID of the command
  25.      interpreter (shell) for each current UNIX system user.  It examines the
  26.      _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_uuuu_tttt_mmmm_pppp_xxxx file to obtain its information.  If _f_i_l_e is given, that
  27.      file (which must be in _uuuu_tttt_mmmm_pppp_xxxx(4) format) is examined.  Usually, _f_i_l_e will
  28.      be _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_wwww_tttt_mmmm_pppp, which contains a history of all the logins since the
  29.      file was last created.
  30.  
  31.      Note that _wwww_hhhh_oooo shows only users of ttys and it does not report any logged
  32.      in users who are simply running X applications from their desktop menus.
  33.  
  34. OOOOPPPPEEEERRRRAAAANNNNDDDDSSSS
  35.      _wwww_hhhh_oooo with the _aaaa_mmmm _iiii or _aaaa_mmmm _IIII operands identifies the invoking user.
  36.  
  37. OOOOPPPPTTTTIIIIOOOONNNNSSSS
  38.      With options, _wwww_hhhh_oooo can list logins, logoffs, reboots, and changes to the
  39.      system clock, as well as other processes spawned by the _iiii_nnnn_iiii_tttt process.
  40.      These options are:
  41.  
  42.      _----_uuuu    This option lists only those users who are currently logged in.
  43.            The _n_a_m_e is the user's login name.  The _l_i_n_e is the name of the
  44.            line as found in the directory _////_dddd_eeee_vvvv.  The _t_i_m_e is the time that the
  45.            user logged in.  The _i_d_l_e column contains the number of hours and
  46.            minutes since activity last occurred on that particular line
  47.            (roughly, the last time something was written on that line).  A dot
  48.            (_....)  indicates that the terminal has seen activity in the last
  49.            minute and is therefore ``current.''  If more than twenty-four
  50.            hours have elapsed or the line has not been used since boot time,
  51.            the entry is marked _oooo_llll_dddd.  This field is useful when trying to
  52.            determine whether a person is working at the terminal or not.  The
  53.            _p_i_d is the process ID of the user's shell.  The _c_o_m_m_e_n_t is the
  54.            comment field associated with this line as found in _////_eeee_tttt_cccc_////_iiii_nnnn_iiii_tttt_tttt_aaaa_bbbb
  55.            [see _iiii_nnnn_iiii_tttt_tttt_aaaa_bbbb(4)].  This can contain information about where the
  56.            terminal is located, the telephone number of the dataset, type of
  57.            terminal if hard-wired, and so on.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. wwwwhhhhoooo((((1111))))                                                                  wwwwhhhhoooo((((1111))))
  71.  
  72.  
  73.  
  74.      _----_TTTT    This option is the same as the _----_uuuu option, except that the _s_t_a_t_e of
  75.            the terminal line is printed.  The _s_t_a_t_e describes whether someone
  76.            else can write to that terminal.  A _++++ appears if the terminal is
  77.            writable by anyone; a _---- appears if it is not.  _rrrr_oooo_oooo_tttt can write to
  78.            all lines having a _++++ or a _---- in the _s_t_a_t_e field.  If a bad line is
  79.            encountered, a _????  is printed.
  80.  
  81.      _----_llll    This option lists only those lines on which the system is waiting
  82.            for someone to login.  The _n_a_m_e field is _LLLL_OOOO_GGGG_IIII_NNNN in such cases.
  83.            Other fields are the same as for user entries except that the _s_t_a_t_e
  84.            field does not exist.
  85.  
  86.      _----_mmmm    This option outputs only information about the current terminal.
  87.  
  88.      _----_HHHH    This option will print column headings above the regular output.
  89.  
  90.      _----_qqqq    This is a quick _wwww_hhhh_oooo, displaying only the names and the number of
  91.            users currently logged on.  When this option is used, all other
  92.            options are ignored.
  93.  
  94.      _----_pppp    This option lists any other process which is currently active and
  95.            has been previously spawned by _iiii_nnnn_iiii_tttt.  The _n_a_m_e field is the name of
  96.            the program executed by _iiii_nnnn_iiii_tttt as found in _////_eeee_tttt_cccc_////_iiii_nnnn_iiii_tttt_tttt_aaaa_bbbb.  The _s_t_a_t_e,
  97.            _llll_iiii_nnnn_eeee, and _i_d_l_e fields have no meaning.  The _c_o_m_m_e_n_t field shows the
  98.            _iiii_dddd field of the line from _////_eeee_tttt_cccc_////_iiii_nnnn_iiii_tttt_tttt_aaaa_bbbb that spawned this process.
  99.            See _iiii_nnnn_iiii_tttt_tttt_aaaa_bbbb(4).
  100.  
  101.      _----_dddd    This option displays all processes that have expired and not been
  102.            respawned by _iiii_nnnn_iiii_tttt.  The _eeee_xxxx_iiii_tttt field appears for dead processes and
  103.            contains the termination and exit values [as returned by _wwww_aaaa_iiii_tttt(2)],
  104.            of the dead process.  This can be useful in determining why a
  105.            process terminated.
  106.  
  107.      _----_bbbb    This option indicates the time and date of the last reboot.
  108.  
  109.      _----_rrrr    This option indicates the current _r_u_n-_l_e_v_e_l of the _iiii_nnnn_iiii_tttt process.
  110.            In addition, it produces the current state, the number of previous
  111.            times the system had been in the current state, and the previous
  112.            state under the _i_d_l_e, _p_i_d, and _c_o_m_m_e_n_t headings, respectively.
  113.  
  114.      _----_tttt    This option indicates the last change to the system clock (via the
  115.            _dddd_aaaa_tttt_eeee command) by _rrrr_oooo_oooo_tttt.  See _ssss_uuuu(1M).
  116.  
  117.      _----_aaaa    This option processes _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_uuuu_tttt_mmmm_pppp_xxxx or the named _f_i_l_e with all
  118.            options turned on.
  119.  
  120.      _----_ssss    This option is the default and lists only the _n_a_m_e, _llll_iiii_nnnn_eeee, and _t_i_m_e
  121.            fields.
  122.  
  123.      _----_nnnn _x  This option takes a numeric argument, _x, which specifies the number
  124.            of users to display per line.  _x must be at least _1111.  The -n option
  125.            must be used with -q.
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. wwwwhhhhoooo((((1111))))                                                                  wwwwhhhhoooo((((1111))))
  137.  
  138.  
  139.  
  140.      Note to privileged users:  after a shutdown to the single-user state, _wwww_hhhh_oooo
  141.      returns a prompt; the reason is that since _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_uuuu_tttt_mmmm_pppp_xxxx is updated at
  142.      login time and there is no login in single-user state, _wwww_hhhh_oooo cannot report
  143.      accurately on this state.  _wwww_hhhh_oooo _aaaa_mmmm _iiii, however, returns the correct
  144.      information.
  145.  
  146. EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT VVVVAAAARRRRIIIIAAAABBBBLLLLEEEESSSS
  147.      The following environment variables affect the execution of _wwww_hhhh_oooo:
  148.  
  149.      _LLLL_AAAA_NNNN_GGGG provide a default value for the internationalization variables that
  150.           are unset or null.  If _L_A_N_G is unset or null the corresponding value
  151.           from the implementation-specific default locale will be used. If any
  152.           of the internationalization variables contains an invalid setting,
  153.           the utility will behave as if none of the variables had been
  154.           defined.
  155.  
  156.      _LLLL_CCCC______AAAA_LLLL_LLLL
  157.           if set to a non-empty string value, override the values of all the
  158.           other internationalization variables.
  159.  
  160.      _LLLL_CCCC______CCCC_TTTT_YYYY_PPPP_EEEE
  161.           determine the locale for the interpretation of sequences of bytes of
  162.           text data as characters (for example, single - as opposed to multi-
  163.           byte - characters in arguments).
  164.  
  165.      _LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS
  166.           determine the locale that should be used to affect the format and
  167.           contents of diagnostic messages written to standard error.
  168.  
  169.      _NNNN_LLLL_SSSS_PPPP_AAAA_TTTT_HHHH
  170.           determine the location of message catalogs for the processing of
  171.           _L_C__M_E_S_S_A_G_E_S.
  172.  
  173. SSSSTTTTDDDDOOOOUUUUTTTT
  174.      The general format for output is:
  175.  
  176.           _n_a_m_e _[[[[_s_t_a_t_e_]]]] _l_i_n_e _t_i_m_e _[[[[_i_d_l_e_]]]] _[[[[_p_i_d_]]]] _[[[[_c_o_m_m_e_n_t_]]]] _[[[[_e_x_i_t_]]]]
  177.  
  178.      The _n_a_m_e, _l_i_n_e, and _t_i_m_e information is produced by all options except
  179.      _----_qqqq; the _s_t_a_t_e information is produced only by _----_TTTT; the _i_d_l_e and _p_i_d
  180.      information is produced only by _----_uuuu, _----_llll, and _----_TTTT; and the _c_o_m_m_e_n_t and _eeee_xxxx_iiii_tttt
  181.      information is produced only by _----_aaaa.  The information produced for _----_pppp, _----_dddd,
  182.      and _----_rrrr is explained during the discussion of each option.
  183.  
  184.      The following format is used for the ----TTTT option:
  185.  
  186.           "%s %c %s %s\n", <_n_a_m_e>, <_t_e_r_m_i_n_a_l _s_t_a_t_e>, <_t_e_r_m_i_n_a_l _n_a_m_e>, <_t_i_m_e _o_f
  187.           _l_o_g_i_n>
  188.  
  189.      where <_t_e_r_m_i_n_a_l _s_t_a_t_e> is one of the following characters:
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. wwwwhhhhoooo((((1111))))                                                                  wwwwhhhhoooo((((1111))))
  203.  
  204.  
  205.  
  206.      +    the terminal allows write access to other users
  207.  
  208.      -    the terminal denies write access to other users
  209.  
  210.      ?    the terminal write-access state cannot be determined
  211.  
  212. EEEEXXXXIIIITTTT SSSSTTTTAAAATTTTUUUUSSSS
  213.      The following exit values are returned:
  214.      _0000   successful completion
  215.      _>>>>_0000  an error occurred
  216.  
  217. NNNNOOOOTTTTEEEESSSS
  218.      _wwww(1) and _wwww_hhhh_oooo(1) can report different idle times for the same line.  _wwww
  219.      will report the time elapsed since input occurred, while _wwww_hhhh_oooo will report
  220.      the time elapsed since output occurred (roughly speaking).  If there is a
  221.      job running that produces output, the idle times will differ between the
  222.      two programs:
  223.  
  224.      babylon: who -Hu
  225.  
  226.      NAME       LINE         TIME          IDLE    PID  COMMENTS root
  227.      ttyd1        Jul  6 10:37   .     1955  alt console
  228.  
  229.      babylon: w
  230.  
  231.      User     tty from        login@  idle   JCPU   PCPU  what root     d1
  232.      10:37am  5:54     23     23  tail -f SYSLOG
  233.  
  234. FFFFIIIILLLLEEEESSSS
  235.      _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_wwww_tttt_mmmm_pppp
  236.      _////_eeee_tttt_cccc_////_iiii_nnnn_iiii_tttt_tttt_aaaa_bbbb
  237.      _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_uuuu_tttt_mmmm_pppp_xxxx
  238.      _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS_////_uuuu_xxxx_cccc_oooo_rrrr_eeee_...._aaaa_bbbb_iiii
  239.      _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS_////_uuuu_xxxx_ssss_gggg_iiii_cccc_oooo_rrrr_eeee
  240.           language-specific message file [See _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn (5).]
  241.  
  242. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  243.      _dddd_aaaa_tttt_eeee(1), _llll_oooo_gggg_iiii_nnnn(1), _mmmm_eeee_ssss_gggg(1), _ssss_uuuu(1M), _iiii_nnnn_iiii_tttt(1M), _iiii_nnnn_iiii_tttt_tttt_aaaa_bbbb(4), _uuuu_tttt_mmmm_pppp_xxxx(4),
  244.      _wwww_aaaa_iiii_tttt(2)
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.